import {Component, Input, OnInit, Output,EventEmitter} from '@angular/core';

@Component({
  selector: 'app-add-kv',
  templateUrl: './add-kv.component.html',
  styleUrls: ['./add-kv.component.css']
})
export class AddKvComponent implements OnInit {


  @Input() C_title:any;

  constructor() { }

  ngOnInit(): void {
  }

  public form:any={
    k:"key",
    v:"value",
    v_obj:{}
  }

  @Output() addItem = new EventEmitter();
  @Output() nzOnCancel=new EventEmitter();
  public emit(){
    this.addItem.emit(this.form);
  }

  public cancel(){
    this.nzOnCancel.emit();
  }


}
